<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>打印模块</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<style>
@media print {
	.hideWhenPrint {
		display: none
	}
}
</style>
		<script language="JavaScript">
var hkey_root,hkey_path,hkey_key
hkey_root="HKEY_CURRENT_USER"
hkey_path="SoftwareMicrosoftInternet ExplorerPageSetup"
//设置网页打印的页眉页脚为空
function pagesetup_null(){
try{
var RegWsh = new ActiveXObject("WScript.Shell")
hkey_key="header" 
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
hkey_key="footer"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"")
}catch(e){}
}
//设置网页打印的页眉页脚为默认值
function pagesetup_default(){
try{
var RegWsh = new ActiveXObject("WScript.Shell")
hkey_key="header" 
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"&w&b页码，&p/&P")
hkey_key="footer"
RegWsh.RegWrite(hkey_root+hkey_path+hkey_key,"&u&b&d")
}catch(e){}
}
</script>
	</head>

	<body>

		<div class="hideWhenPrint"
			style="position: absolute; width: 500; height: 40; margin-right: 25px; top: expression(document . body . scrollTop +( document . body . clientHeight) -this . offsetHeight ); left: expression(document . body . scrollLeft +( document . body . clientWidth) -this . offsetWidth );"
			align="right">
			<OBJECT classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"
				height="0" id="printwb" name="printwb" width="0"></OBJECT>
			<input type=button name=button_show value="清空页眉页脚"
				onclick="javascript:pagesetup_null();">
			
			<input type=button name=button_setup value="页面设置"
				onclick="javascript:printwb.ExecWB(8,1);">
			<input type=button name=button_show value="打印预览"
				onclick="javascript:printwb.ExecWB(7,1);">
          <input type=button name=button_print value="打印"
				onclick="javascript:if(confirm('确定打印吗'))printwb.ExecWB(6,6) ">
			<input type=button name=button_fh value="关闭"
				onclick="javascript:printwb.ExecWB(45,1);">
			<!-- <input type=button name=button_fh value="返回"
				onclick="javascript:window.history.go(-1);"> -->
			<input type=button   onclick="javascript:window.open('download/gysqdyylwfsywt.doc')" value="打印帮助说明"/>
			&nbsp;&nbsp;
		</div>


	</body>
</html>
